package com.weiyi.weiman.ascpect;

import com.weiyi.weiman.utils.RedisUtils;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @Author zhang
 * @Date 2021/5/14 下午12:27
 * @Description
 * @Version 1.0
 **/
@Aspect
@Component
public class DataLogAspect {

    @Autowired
    private RedisUtils redisUtils;

    @Pointcut("@annotation(com.weiyi.weiman.annotation.DataLog)")
    public void pointcut(){ }

    @Around("pointcut()")
    public Object around(ProceedingJoinPoint point) {
        return null;
    }

    private void saveData(ProceedingJoinPoint joinPoint, Long time) {

    }

}
